#ifndef WTRACK_H
#define WTRACK_H

#include "../../../model/mtrack.h"
#include "../../../core/dttrack.h"

#include "wtable.h"

class WTrack : public WTable
{
    Q_OBJECT
    
public:
    explicit WTrack(QWidget *parent = 0);
    ~WTrack();
    void setList(QList<AbstractData *> &lTrack);
    QString getPath();
    
signals:
    void playTrack(QList<DtTrack *> &);
    void addTrack(QList<DtTrack *> &);
private:
    MTrack model;
    QString selection;
private slots:
    void on_tableView_clicked(const QModelIndex &index);
};

#endif // WTRACK_H
